package com.sinosoft.dsp.persistence.businessconcept.atom;

import com.sinosoft.dsp.system.utils.Const;

/**
 * 定位对象
 * 
 * @author 潘巍（Peter Pan）
 * @since 2011-4-23 下午03:56:49
 */
public class SinoLocationBean implements ISinoAtomType {

	// 经度
	private Double longitude;

	// 经度类型，东经/西经
	private String longitudeType;

	// 纬度
	private Double latitude;

	// 纬度类型，北纬/南纬
	private String latitudeType;

	// 详细地址
	private String detailAddress;

	// 行政区划
	private String adminDistrict;

	public Double getLongitude() {
		return longitude;
	}

	public SinoLocationBean setLongitude(Double longitude) {
		this.longitude = longitude;
		return this;
	}

	public Double getLatitude() {
		return latitude;
	}

	public SinoLocationBean setLatitude(Double latitude) {
		this.latitude = latitude;
		return this;
	}

	public String getDetailAddress() {
		return detailAddress;
	}

	public SinoLocationBean setDetailAddress(String detailAddress) {
		this.detailAddress = detailAddress;
		return this;
	}

	public String getAdminDistrict() {
		return adminDistrict;
	}

	public SinoLocationBean setAdminDistrict(String adminDistrict) {
		this.adminDistrict = adminDistrict;
		return this;
	}

	public String getLongitudeType() {
		return longitudeType;
	}

	public SinoLocationBean setLongitudeType(String longitudeType) {
		this.longitudeType = longitudeType;
		return this;
	}

	public String getLatitudeType() {
		return latitudeType;
	}

	public SinoLocationBean setLatitudeType(String latitudeType) {
		this.latitudeType = latitudeType;
		return this;
	}

	@Override
	public boolean isEmpty() {
		return this.latitude == null && this.longitude == null
				&& Const.isEmpty(this.detailAddress)
				&& Const.isEmpty(this.adminDistrict);
	}

}
